package com.fms.gui.templateCreator.components.selector;

import java.io.File;

import junit.framework.TestCase;

public class XLSFileFilterTest extends TestCase
{
	public void testFileValid()
	{
		XLSFileFilter f = new XLSFileFilter();
		
		
		assertTrue(f.accept(new File("text.xls")));
		assertTrue(f.accept(new File("text.xLs")));
		assertTrue(f.accept(new File("text.XLS")));
		
		
	}
	
	public void testFileBad()
	{
		XLSFileFilter f = new XLSFileFilter();
		
		
		assertFalse(f.accept(new File("textxls")));
		assertFalse(f.accept(new File("textXLS")));
		
		
	}
	
	public void testName()
	{
		XLSFileFilter f = new XLSFileFilter();

		assertTrue(f.getDescription().equals("Excel Spreadsheet (.xls)"));
		
		
	}
}
